#!/bin/sh


string="alibaba is a great company"
echo `expr index "$string" is`


# @doc 文本操作 find xargs sed
find . -name rebar.config|xargs sed -i 's/require_otp_vsn,\s\+"\(.\+\)"/require_otp_vsn, "R15B03|R16B*|17|18"/g'
sed -i 's/127.0.0.1/192.168.1.16/' priv/docroot/index.html  %把index.html 中的127.0.0.1替换成192.168.1.6
sed -i 's/ -Werror//g' `grep -rl "\-Werror" ./`

# 日期
date "+%Y%m%d%M" #-> 2018062547


#
nohup cmd &


#awk
grep 'release' rebar.config | awk -F '"' '{print $2}'


#快捷方式
cd /usr/share/applications
vim app.desktop
# [Desktop Entry]
# Version=1.0
# Type=Application
# Name=脑图
# Icon = /home/yj/tool/DesktopNaotu-linux-x64/resources/app/favicon.png
# Exec = "/home/yj/tool/DesktopNaotu-linux-x64/DesktopNaotu"
# Comment=脑图
# Categories=Development;IDE;
# Terminal=false
